package com.my.goodsmanage.utils;

import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;

/**
 * @author 徐佳辉
 * @date 2020/8/4 22:49
 */
public class MD5Util {
    public static String setMd5(String s){
        return DigestUtils.md5DigestAsHex(s.getBytes(StandardCharsets.UTF_8));
    }
}
